﻿<%@ Page Language="C#" AutoEventWireup="true" Theme="Register"  %>
<script runat="server" >
    protected void Page_Load(object sender, EventArgs e)
    {
        Page.Title = Resources.faContent.unsubscribePageTitle;
        lHelp.Text = Resources.faContent.unsubscribeHelpNote;
        Btn11.Text = Resources.faContent.unsubscribeButtonText;
        lHeaderText.Text = Resources.faContent.unsubscribeButtonText;

    }
    protected void Btn1_OnClick(object sender, EventArgs e)
    {
        FormsAuthentication.SignOut();
        Membership.DeleteUser(System.Web.HttpContext.Current.User.Identity.Name, true); // DC: except during testing, of course!
        Type javascript = "javascript".GetType();
        ClientScript.RegisterClientScriptBlock(javascript, "r1", "alert('"+Resources.faContent.unsubscribeDeleteUserMsg+"');", true);
    }
</script>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
</head>
<body >
    <form id="form1" runat="server">
    <div class="box" style="width:500px;direction:rtl" >
   <b class="top">
    <b class="bb1 blue"></b>
    <b class="b2 blue"></b>
    <b class="b3 blue"></b>
    <b class="b4 blue"></b>
   </b>
   <div class="con2" >
      <div class="tophead">
       <span >
        <asp:Literal runat="server" ID="lHeaderText" />
       </span>
      </div>
      <div class="con3">
     <span>
      <img src="../App_Themes/Admin/image/icon_info.png" alt="" />
      <asp:Literal runat="server" ID="lHelp" /> 
     </span>
     <center>
        <asp:Button CssClass="submitbutton" OnClientClick="return confirm('آيا از لغو عضویتتان در سایت انجمن مطمئن هستيد؟');"  OnClick="Btn1_OnClick"   ValidationGroup="Register" runat="server" ID="Btn11"   />
       </center>            
       <asp:ValidationSummary runat="server" ID="VS" DisplayMode="List" ShowSummary="false" ValidationGroup="Register" EnableClientScript="true" ShowMessageBox="true" />
      </div>
      <center>
      <asp:Label CssClass="font2"  runat="server" ID="Message" />
      </center>
        <br /><br />
   </div>
   <b class="bottom2">
    <b class="b4 blue1"></b>
    <b class="b3 blue1"></b>
    <b class="b2 blue1"></b>
    <b class="bb1 blue1">
    </b>
   </b>
   </div>
    </form>
</body>
</html>

